/**
 * $Id: BookAdminCommand.java 24 2011-06-17 13:31:30Z feigme $
 */
package com.iary.interfaces.web.admin.book;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import com.iary.domain.model.book.BookArea;
import com.iary.domain.model.book.BookCategory;
import com.iary.domain.model.book.BookIndex;
import com.iary.domain.model.book.BookStatus;

public class BookAdminCommand {

	private Long id;
	@NotEmpty(message = "name is required!")
	private String name;
	@NotEmpty
	private String path;
	private String author;
	private BookStatus status;
	private BookCategory category;

	@NotNull
	private BookIndex index;

	private BookArea area;
	private String description;
	private String uploadFile;

	private int pageNo;

	private BookStatus[] statusList = BookStatus.values();
	private BookCategory[] categoryList = BookCategory.values();
	private BookIndex[] indexList = BookIndex.values();
	private BookArea[] areaList = BookArea.values();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public BookStatus[] getStatusList() {
		return statusList;
	}

	public void setStatusList(BookStatus[] statusList) {
		this.statusList = statusList;
	}

	public BookCategory[] getCategoryList() {
		return categoryList;
	}

	public void setCategoryList(BookCategory[] categoryList) {
		this.categoryList = categoryList;
	}

	public BookIndex[] getIndexList() {
		return indexList;
	}

	public void setIndexList(BookIndex[] indexList) {
		this.indexList = indexList;
	}

	public String getUploadFile() {
		return uploadFile;
	}

	public void setUploadFile(String uploadFile) {
		this.uploadFile = uploadFile;
	}

	public BookArea[] getAreaList() {
		return areaList;
	}

	public void setAreaList(BookArea[] areaList) {
		this.areaList = areaList;
	}

	public BookStatus getStatus() {
		return status;
	}

	public void setStatus(BookStatus status) {
		this.status = status;
	}

	public BookCategory getCategory() {
		return category;
	}

	public void setCategory(BookCategory category) {
		this.category = category;
	}

	public BookIndex getIndex() {
		return index;
	}

	public void setIndex(BookIndex index) {
		this.index = index;
	}

	public BookArea getArea() {
		return area;
	}

	public void setArea(BookArea area) {
		this.area = area;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

}
